package com.zky.gulimall.product;

/**
 * @Description TODO
 * @Author 张开源
 * @Date 2022/11/6 18:04
 * @Version 1.0
 **/
public class Singleton3 {
    private static volatile Singleton3 singleton3=null;

    private Singleton3(){}

    public static Singleton3 getSingleton3(){
        if(singleton3==null){
            synchronized (Singleton3.class){
                if(singleton3==null){
                    return new Singleton3();
                }
            }
        }
        return singleton3;
    }
}
